<script setup>
import { inject } from 'vue';

const MessageBoxService = inject('MessageBoxService');
function showPrompt() {
    MessageBoxService.prompt('Please give your opinion', 'I accept it.');
}
</script>
<template>
    <f-button style="margin: 5px" :type="'primary'" @click="showPrompt"> 显示对话框 </f-button>
</template>
